
package com.itheima.reggie.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.itheima.reggie.common.LocalDateStringConverter;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
public class EmployeeExcel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "用户账号Id")
    private String id;

    @ExcelProperty(value = "账号名")
    private String username;

    @ExcelProperty(value = "用户名")
    private String name;

    @ExcelIgnore
    private String password;

    @ExcelProperty(value = "手机号")
    private String phone;

    @ExcelProperty(value = "性别")
    private String sex;

    @ExcelProperty(value = "身份证号")
    private String idNumber;

    @ExcelProperty(value = "账号状态")
    private String status;

    @lombok.Getter
    @ExcelProperty(value = "创建时间",converter= LocalDateStringConverter.class)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ExcelProperty(value = "修改时间",converter=LocalDateStringConverter.class)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ExcelProperty(value = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ExcelProperty(value = "修改者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUser;



}

